VERSION 5.00 Begin VB.Form frmOptions BackColor = &H00000000& BorderStyle = 1 'Fixed Single Caption = "Options" ClientHeight = 2370 ClientLeft = 45 ClientTop = 330 ClientWidth = 7305 Icon = "frmOptions.frx":0000 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 2370 ScaleWidth = 7305 StartUpPosition = 3 'Windows Default Begin VB.Timer Timer1 Interval = 200 Left = 0 Top = 1920 End Begin VB.CommandButton cmdSaveOptions Caption = "&Save Options" Height = 255 Left = 5040 TabIndex = 5 Top = 1920 Width = 2055 End Begin VB.CheckBox chkShowPaths BackColor = &H00000000& Height = 255 Left = 2040 TabIndex = 4 Top = 1920 Width = 255 End Begin VB.TextBox txtHome2URL Alignment = 2 'Center BackColor = &H00404040& BorderStyle = 0 'None BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 2040 MaxLength = 50 TabIndex = 2 Top = 960 Width = 5055 End Begin VB.TextBox txtSearchURL Alignment = 2 'Center BackColor = &H00404040& BorderStyle = 0 'None BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 2040 MaxLength = 50 TabIndex = 3 Top = 1320 Width = 5055 End Begin VB.TextBox txtHome1URL Alignment = 2 'Center BackColor = &H00404040& BorderStyle = 0 'None BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 2040 MaxLength = 50 TabIndex = 1 Top = 600 Width = 5055 End Begin VB.TextBox txtStartingURL Alignment = 2 'Center BackColor = &H00404040& BorderStyle = 0 'None BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 2040 MaxLength = 50 TabIndex = 0 Top = 240 Width = 5055 End Begin VB.Label Label4 BackColor = &H00000000& Caption = "Show Paths" BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 240 TabIndex = 10 ToolTipText = "Refresh" Top = 1920 Width = 1695 End Begin VB.Label Label3 BackColor = &H00000000& Caption = "Home2 URL" BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 240 TabIndex = 9 ToolTipText = "Refresh" Top = 960 Width = 1695 End Begin VB.Label Label2 BackColor = &H00000000& Caption = "Search URL" BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 240 TabIndex = 8 ToolTipText = "Refresh" Top = 1320 Width = 1695 End Begin VB.Label Label1 BackColor = &H00000000& Caption = "Home URL" BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 240 TabIndex = 7 ToolTipText = "Refresh" Top = 600 Width = 1695 End Begin VB.Label lblRefresh BackColor = &H00000000& Caption = "Starting URL" BeginProperty Font Name = "Tahoma" Size = 12 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FFFFFF& Height = 285 Left = 240 TabIndex = 6 ToolTipText = "Refresh" Top = 240 Width = 1695 End Attribute VB_Name = "frmOptions" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub chkShowPaths_Click() 'changed, timer will enable save button bHasOptionsChanged = True End Sub Private Sub cmdSaveOptions_Click() 'save the options to the options file fSaveOptions 'disable the save button, timer will re-enable 'if something changes cmdSaveOptions.Enabled = False End Sub Private Sub Form_Unload(Cancel As Integer) 'unload the options screen Unload frmOptions End Sub Private Sub fSaveOptions() 'assign the options on screen to the structure Options.Home1URL = txtHome1URL.Text Options.Home2URL = txtHome2URL.Text Options.SearchURL = txtSearchURL.Text Options.ShowPaths = chkShowPaths.Value 'set start url to '-' if nothing entered If RTrim(txtStartingURL.Text) = "" Then Options.StartURL = "-" Else Options.StartURL = txtStartingURL.Text End If 'save the options Open App.Path & "\options.web" For Random As #1 Len = Len(Options) Put #1, 1, Options Close #1 End Sub Private Sub Timer1_Timer() 'changed, timer will enable save button If bHasOptionsChanged <> False Then cmdSaveOptions.Enabled = True Else cmdSaveOptions.Enabled = False End If End Sub Private Sub txtHome1URL_Change() 'changed, timer will enable save button bHasOptionsChanged = True End Sub Private Sub txtHome2URL_Change() 'changed, timer will enable save button bHasOptionsChanged = True End Sub Private Sub txtSearchURL_Change() 'changed, timer will enable save button bHasOptionsChanged = True End Sub Private Sub txtStartingURL_Change() 'changed, timer will enable save button bHasOptionsChanged = True End Sub